<template>
	<div>
		<!-- 老代码 -->
		<!-- <el-row
      :class="structData.dataStruct.length > 1 ? 'ne-col2-gutter-15' : ''"
    >
      <el-col
        v-for="(struct, indexAB) in structData.dataStruct"
        :span="structData.dataStruct.length > 1 ? 12 : 24"
        class="line"
        :key="indexAB"
      >
        <el-row>
          <el-col :span="24" class="line">
            <h4 class="ne-inen-title">
              <span>{{ struct.structName }}</span>
            </h4>
          </el-col>
          <PPMForm :folded="$attrs.folded" :structData="struct" :formData="formData"></PPMForm>
        </el-row>
      </el-col>
    </el-row> -->
		<el-row type="flex" justify="space-between">
			<el-col :span="12" :style="indexAB % 2 == 1 ? [marginLeft] : []" class="ppm-box-group" v-for="(struct, indexAB) in structData.dataStruct" :key="indexAB">
				<h5 class="ppm-title" v-if="onoff(struct.structName, '$')">{{ title(struct.structName, "$") }}</h5>
				<!-- <PPMForm :folded="$attrs.folded" :structData="struct" :formData="formData" :ruleData="ruleData"></PPMForm> -->
				<component :is="proName" :folded="$attrs.folded" :structData="struct" :formData="formData" :ruleData="ruleData"></component>
			</el-col>
		</el-row>
	</div>
</template>

<script>
import ppmstructmixin from "../utils/mixin";
export default {
	name: "PPMDataHeavy",
	mixins: [ppmstructmixin],
	props: {
		formData: {
			type: Object,
		},
		ruleData: {
			type: Object,
		},
		structData: {
			type: Object,
		},
		spanNum: {
			type: Number,
			default: 24,
		},
	},
	data() {
		return {
			marginLeft: {
				marginLeft: "20px",
			},
			proName:''
		};
	},
	components: {
		PPMForm: () => import("./ppmForm"),
	},
	created() {
		this.proName = sessionStorage.getItem('proName')||'PPMForm'
	},
	mounted() {},
	methods: {},
};
</script>

<style></style>
